<?php
namespace app\api\controller;
use think\Db;
use think\Controller;
use think\Log;
use app\service\apixcxService;
use app\service\imageService;
class Test extends Controller
{
	public function test3()
	{
		$url="http://cloudspeaker.smartlinkall.com/add.php?id=31000396&uid=API_ZZKJ&token=110921791234&price=100&pt=1";
		$res=file_get_contents($url);
		var_dump($res);
	}
	public function test2()
	{
		$user_id="2088112618452297";
		$uid=0;
		$parent_user_id="2088112618452297";
		$res=(new imageService())->createimg($user_id);
		var_dump($res);
	}
	public function test()
	{
		$phone="18856151031";
		$to="18856151031";
		$name="杨战磊";
		$code="188561";
		$res=send_sms($to, 1, ['code' => $code]);
		var_dump($res);
	
	}
	public function img(){
		echo "<img src='yang.png'>";
	}
}